#!/bin/bash

hadoopDataPath="/data"
hadoopConfigPath="/etc/hadoop"

if [ ! -d "$hadoopDataPath" ]; then
	mkdir $hadoopDataPath
fi

chown hadoop:hadoop $hadoopDataPath -R 
chown hadoop:hadoop $hadoopConfigPath -R
